<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>File Source for inflections.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
						<h1>Source for file inflections.php</h1>
<p>Documentation is available at <a href="../cake/cake-app-config/_config---inflections.php.html">inflections.php</a></p>
<div class="src-code">
<div class="src-code"><ol><li><div class="src-line"><a name="a1"></a><span class="src-php">&lt;?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-comm">/*&nbsp;SVN&nbsp;FILE:&nbsp;$Id:&nbsp;inflections.php&nbsp;7945&nbsp;2008-12-19&nbsp;02:16:01Z&nbsp;gwoo&nbsp;$&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-doc">&nbsp;*&nbsp;Custom&nbsp;Inflected&nbsp;Words.</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-doc">&nbsp;*&nbsp;This&nbsp;file&nbsp;is&nbsp;used&nbsp;to&nbsp;hold&nbsp;words&nbsp;that&nbsp;are&nbsp;not&nbsp;matched&nbsp;in&nbsp;the&nbsp;normail&nbsp;Inflector::pluralize()&nbsp;and</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-doc">&nbsp;*&nbsp;Inflector::singularize()</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-doc">&nbsp;*&nbsp;PHP&nbsp;versions&nbsp;4&nbsp;and&nbsp;%</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-doc">&nbsp;*&nbsp;CakePHP(tm)&nbsp;:&nbsp;&nbsp;Rapid&nbsp;Development&nbsp;Framework&nbsp;(http://www.cakephp.org)</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-doc">&nbsp;*&nbsp;Copyright&nbsp;2005-2008,&nbsp;Cake&nbsp;Software&nbsp;Foundation,&nbsp;Inc.&nbsp;(http://www.cakefoundation.org)</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-doc">&nbsp;*&nbsp;Licensed&nbsp;under&nbsp;The&nbsp;MIT&nbsp;License</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-doc">&nbsp;*&nbsp;Redistributions&nbsp;of&nbsp;files&nbsp;must&nbsp;retain&nbsp;the&nbsp;above&nbsp;copyright&nbsp;notice.</span></div></li>
<li><div class="src-line"><a name="a16"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a17"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@filesource</span></div></li>
<li><div class="src-line"><a name="a18"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@copyright</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copyright&nbsp;2005-2008,&nbsp;Cake&nbsp;Software&nbsp;Foundation,&nbsp;Inc.&nbsp;(http://www.cakefoundation.org)</span></div></li>
<li><div class="src-line"><a name="a19"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@link</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.cakefoundation.org/projects/info/cakephp&nbsp;CakePHP(tm)&nbsp;Project</span></div></li>
<li><div class="src-line"><a name="a20"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@package</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cake</span></div></li>
<li><div class="src-line"><a name="a21"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@subpackage</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;cake.app.config</span></div></li>
<li><div class="src-line"><a name="a22"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@since</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CakePHP(tm)&nbsp;v&nbsp;1.0.0.2312</span></div></li>
<li><div class="src-line"><a name="a23"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@version</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$Revision:&nbsp;7945&nbsp;$</span></div></li>
<li><div class="src-line"><a name="a24"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-tag">@modifiedby</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;$LastChangedBy:&nbsp;gwoo&nbsp;$</span></div></li>
<li><div class="src-line"><a name="a25"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-tag">@lastmodified</span><span class="src-doc">&nbsp;&nbsp;$Date:&nbsp;2008-12-18&nbsp;21:16:01&nbsp;-0500&nbsp;(Thu,&nbsp;18&nbsp;Dec&nbsp;2008)&nbsp;$</span></div></li>
<li><div class="src-line"><a name="a26"></a><span class="src-doc">&nbsp;*&nbsp;</span><span class="src-doc-coretag">@license</span><span class="src-doc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;http://www.opensource.org/licenses/mit-license.php&nbsp;The&nbsp;MIT&nbsp;License</span></div></li>
<li><div class="src-line"><a name="a27"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a28"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a29"></a><span class="src-doc">&nbsp;*&nbsp;This&nbsp;is&nbsp;a&nbsp;key&nbsp;=&gt;&nbsp;value&nbsp;array&nbsp;of&nbsp;regex&nbsp;used&nbsp;to&nbsp;match&nbsp;words.</span></div></li>
<li><div class="src-line"><a name="a30"></a><span class="src-doc">&nbsp;*&nbsp;If&nbsp;key&nbsp;matches&nbsp;then&nbsp;the&nbsp;value&nbsp;is&nbsp;returned.</span></div></li>
<li><div class="src-line"><a name="a31"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a32"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;$pluralRules&nbsp;=&nbsp;array('/(s)tatus$/i'&nbsp;=&gt;&nbsp;'\1\2tatuses',&nbsp;'/^(ox)$/i'&nbsp;=&gt;&nbsp;'\1\2en',&nbsp;'/([m|l])ouse$/i'&nbsp;=&gt;&nbsp;'\1ice');</span></div></li>
<li><div class="src-line"><a name="a33"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a34"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$pluralRules&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a35"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a36"></a><span class="src-doc">&nbsp;*&nbsp;This&nbsp;is&nbsp;a&nbsp;key&nbsp;only&nbsp;array&nbsp;of&nbsp;plural&nbsp;words&nbsp;that&nbsp;should&nbsp;not&nbsp;be&nbsp;inflected.</span></div></li>
<li><div class="src-line"><a name="a37"></a><span class="src-doc">&nbsp;*&nbsp;Notice&nbsp;the&nbsp;last&nbsp;comma</span></div></li>
<li><div class="src-line"><a name="a38"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a39"></a><span class="src-doc">&nbsp;*&nbsp;$uninflectedPlural&nbsp;=&nbsp;array('.*[nrlm]ese',&nbsp;'.*deer',&nbsp;'.*fish',&nbsp;'.*measles',&nbsp;'.*ois',&nbsp;'.*pox');</span></div></li>
<li><div class="src-line"><a name="a40"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a41"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$uninflectedPlural&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a42"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a43"></a><span class="src-doc">&nbsp;*&nbsp;This&nbsp;is&nbsp;a&nbsp;key&nbsp;=&gt;&nbsp;value&nbsp;array&nbsp;of&nbsp;plural&nbsp;irregular&nbsp;words.</span></div></li>
<li><div class="src-line"><a name="a44"></a><span class="src-doc">&nbsp;*&nbsp;If&nbsp;key&nbsp;matches&nbsp;then&nbsp;the&nbsp;value&nbsp;is&nbsp;returned.</span></div></li>
<li><div class="src-line"><a name="a45"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a46"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;$irregularPlural&nbsp;=&nbsp;array('atlas'&nbsp;=&gt;&nbsp;'atlases',&nbsp;'beef'&nbsp;=&gt;&nbsp;'beefs',&nbsp;'brother'&nbsp;=&gt;&nbsp;'brothers')</span></div></li>
<li><div class="src-line"><a name="a47"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a48"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$irregularPlural&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a49"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a50"></a><span class="src-doc">&nbsp;*&nbsp;This&nbsp;is&nbsp;a&nbsp;key&nbsp;=&gt;&nbsp;value&nbsp;array&nbsp;of&nbsp;regex&nbsp;used&nbsp;to&nbsp;match&nbsp;words.</span></div></li>
<li><div class="src-line"><a name="a51"></a><span class="src-doc">&nbsp;*&nbsp;If&nbsp;key&nbsp;matches&nbsp;then&nbsp;the&nbsp;value&nbsp;is&nbsp;returned.</span></div></li>
<li><div class="src-line"><a name="a52"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a53"></a><span class="src-doc">&nbsp;*&nbsp;&nbsp;$singularRules&nbsp;=&nbsp;array('/(s)tatuses$/i'&nbsp;=&gt;&nbsp;'\1\2tatus',&nbsp;'/(matr)ices$/i'&nbsp;=&gt;'\1ix','/(vert|ind)ices$/i')</span></div></li>
<li><div class="src-line"><a name="a54"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a55"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$singularRules&nbsp;</span>=&nbsp;<span class="src-key">array</span><span class="src-sym">(</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a56"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a57"></a><span class="src-doc">&nbsp;*&nbsp;This&nbsp;is&nbsp;a&nbsp;key&nbsp;only&nbsp;array&nbsp;of&nbsp;singular&nbsp;words&nbsp;that&nbsp;should&nbsp;not&nbsp;be&nbsp;inflected.</span></div></li>
<li><div class="src-line"><a name="a58"></a><span class="src-doc">&nbsp;*&nbsp;You&nbsp;should&nbsp;not&nbsp;have&nbsp;to&nbsp;change&nbsp;this&nbsp;value&nbsp;below&nbsp;if&nbsp;you&nbsp;do&nbsp;change&nbsp;it&nbsp;use&nbsp;same&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a59"></a><span class="src-doc">&nbsp;*&nbsp;as&nbsp;the&nbsp;$uninflectedPlural&nbsp;above.</span></div></li>
<li><div class="src-line"><a name="a60"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a61"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$uninflectedSingular&nbsp;</span>=&nbsp;<span class="src-var">$uninflectedPlural</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a62"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a63"></a><span class="src-doc">&nbsp;*&nbsp;This&nbsp;is&nbsp;a&nbsp;key&nbsp;=&gt;&nbsp;value&nbsp;array&nbsp;of&nbsp;singular&nbsp;irregular&nbsp;words.</span></div></li>
<li><div class="src-line"><a name="a64"></a><span class="src-doc">&nbsp;*&nbsp;Most&nbsp;of&nbsp;the&nbsp;time&nbsp;this&nbsp;will&nbsp;be&nbsp;a&nbsp;reverse&nbsp;of&nbsp;the&nbsp;above&nbsp;$irregularPlural&nbsp;array</span></div></li>
<li><div class="src-line"><a name="a65"></a><span class="src-doc">&nbsp;*&nbsp;You&nbsp;should&nbsp;not&nbsp;have&nbsp;to&nbsp;change&nbsp;this&nbsp;value&nbsp;below&nbsp;if&nbsp;you&nbsp;do&nbsp;change&nbsp;it&nbsp;use&nbsp;same&nbsp;format</span></div></li>
<li><div class="src-line"><a name="a66"></a><span class="src-doc">&nbsp;*</span></div></li>
<li><div class="src-line"><a name="a67"></a><span class="src-doc">&nbsp;*&nbsp;$irregularSingular&nbsp;=&nbsp;array('atlases'&nbsp;=&gt;&nbsp;'atlas',&nbsp;'beefs'&nbsp;=&gt;&nbsp;'beef',&nbsp;'brothers'&nbsp;=&gt;&nbsp;'brother')</span></div></li>
<li><div class="src-line"><a name="a68"></a><span class="src-doc">&nbsp;*/</span></div></li>
<li><div class="src-line"><a name="a69"></a>&nbsp;&nbsp;&nbsp;&nbsp;<span class="src-var">$irregularSingular&nbsp;</span>=&nbsp;<a href="http://www.php.net/array_flip">array_flip</a><span class="src-sym">(</span><span class="src-var">$irregularPlural</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a70"></a><span class="src-php">?&gt;</span></div></li>
</ol></div>
</div>
	<p class="notes" id="credit">
		Documentation generated on Mon, 08 Nov 2010 12:02:37 -0500 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</body>
</html>